package lab02.test19;

public class Test {
    public static void main(String[] args) {
        String result = "HelloWorld";
        char tmp;
        for (int i = 7; i >=0; i--) {
            tmp = result.charAt(i);
            if (tmp >= 'A' && tmp <= 'Z') {
                 System.out.print((char) (tmp + 32));
            } else {
                 System.out.print((char) (tmp - 32));
            }
        }
    }
}
